package commonAdmin.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import commonAdmin.dao.GameDao;
import commonAdmin.domain.Game;
import commonAdmin.domain.Page;
import commonAdmin.domain.WebPageSearchCondition;

@Service
public class GameServiceImpl implements GameService {

	@Autowired
	private GameDao gameDao;

	@Override
	public Long add(Game domain) {
		return gameDao.add(domain);
	}

	@Override
	public boolean update(Game domain) {
		return gameDao.update(domain);
	}

	@Override
	public Game get(Long id) {
		return gameDao.get(id);
	}

	@Override
	public Page<Game> queryForPage(WebPageSearchCondition<Game> searchCondition, Page<Game> page) {
		return gameDao.queryForPage(searchCondition, page);
	}

	@Override
	public boolean delete(Long id) {
		return gameDao.delete(id);
	}

	@Override
	public List<Game> listAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
